﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Himp.Erp.Migrations
{
    /// <inheritdoc />
    public partial class modify_table_Inbounddetl : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Amt",
                schema: "Erp",
                table: "InboundDetl");

            migrationBuilder.DropColumn(
                name: "Pric",
                schema: "Erp",
                table: "InboundDetl");

            migrationBuilder.AddColumn<decimal>(
                name: "DiscRate",
                schema: "Erp",
                table: "InboundDetl",
                type: "numeric(18,2)",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "InboundAmt",
                schema: "Erp",
                table: "InboundDetl",
                type: "numeric(18,4)",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "InboundPric",
                schema: "Erp",
                table: "InboundDetl",
                type: "numeric(18,4)",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "PurcAmt",
                schema: "Erp",
                table: "InboundDetl",
                type: "numeric(18,4)",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "PurcPric",
                schema: "Erp",
                table: "InboundDetl",
                type: "numeric(18,4)",
                nullable: true);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "DiscRate",
                schema: "Erp",
                table: "InboundDetl");

            migrationBuilder.DropColumn(
                name: "InboundAmt",
                schema: "Erp",
                table: "InboundDetl");

            migrationBuilder.DropColumn(
                name: "InboundPric",
                schema: "Erp",
                table: "InboundDetl");

            migrationBuilder.DropColumn(
                name: "PurcAmt",
                schema: "Erp",
                table: "InboundDetl");

            migrationBuilder.DropColumn(
                name: "PurcPric",
                schema: "Erp",
                table: "InboundDetl");

            migrationBuilder.AddColumn<decimal>(
                name: "Amt",
                schema: "Erp",
                table: "InboundDetl",
                type: "numeric(18,6)",
                nullable: false,
                defaultValue: 0m);

            migrationBuilder.AddColumn<decimal>(
                name: "Pric",
                schema: "Erp",
                table: "InboundDetl",
                type: "numeric(18,6)",
                nullable: false,
                defaultValue: 0m);
        }
    }
}
